package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 入库质检任务
 */
@Controller
@RequestMapping("/task")
public class WmsRkQualityRouter {
    @Autowired
    SysMenuService menuService;
    //主页面
    @RequestMapping(value = "/qualityInOperationTask/{menu}")
    public String toZhouzhuanRule(@PathVariable("menu") String menu, Model model) {
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "rkQuality/rkQuality";
    }

    /*跳转到生成质检入库任务页面*/
    @RequestMapping(value = "/addQuality")
    public String toLowerTask(String ids, Model model) {
        model.addAttribute("ids",ids);
        return "rkQuality/addRkQuality";
    }
    /*跳转到查看质检入库任务明细页面*/
    @RequestMapping(value = "/lookQuality")
    public String tolookTask(String ids, Model model) {
        model.addAttribute("ids",ids);
        return "rkQuality/lookRkQuality";
    }
    /*跳转查看库位*/
    @RequestMapping(value = "/lookKw")
    public String tolookKw(String ids, Model model) {
        model.addAttribute("ids",ids);
        return "rkQuality/lookKw";
    }
}
